<!DOCTYPE html>
<html>
<head>
  <script src="jquery.js"></script>
</head>
<body>
  <div id="list">

</div>
<hr>
<h2>Presentation Services: PartnerDetails</h2>
<a href="/json-restlet-example-web/jsonREST/1.0/poPartnerDetails/execute?partnerNr=21180983">21180983 - Spitznagel</a><br>
<a href="/json-restlet-example-web/jsonREST/1.0/poPartnerDetails/execute?partnerNr=21202774">21202774 - Schumm</a><br>
<a href="/json-restlet-example-web/jsonREST/1.0/poPartnerDetails/execute?partnerNr=21176203">21176203 - Keller Ing HTL</a><br>
<a href="/json-restlet-example-web/jsonREST/1.0/poPartnerDetails/execute?partnerNr=21231910">21231910 - Hans-Peter Muster</a><br>
<a href="/json-restlet-example-web/jsonREST/1.0/poPartnerDetails/execute?partnerNr=21153174">21153174 - Beatrice Meier</a><br>
<a href="/json-restlet-example-web/jsonREST/1.0/poPartnerDetails/execute?partnerNr=22">fail (any other request)</a><br>
<hr>
<h2>Presentation Services: MetaData</h2>
<a href="/json-restlet-example-web/jsonREST/1.0/poMetaDataDetails/execute">all metadata</a><br>

<script>
$.getJSON("http://localhost:8080/json-restlet-example-web/jsonREST/1.0/articles/list", function(data) {
	var items = [];
	$.each(data.list.articleType, function(i, item) {
		   items.push('<li id="' + item.id + '"><a href="http://localhost:8080/json-restlet-example-web/jsonREST/1.0/articles/get?id='+item.id+'">' + item.name+', '+item.id+', ' +item.description+', '+item.price.currency+' '+item.price.amount+ '</a></li>');
	});
    
    $('<ul/>', {
        'class': '',
        html: items.join('')
      }).appendTo('#list');    
    
  });</script>

</body>
</html>